Is there any differents between $GLOBALS["test"] and global $test?

Posted by PHP-Prabhu on Stack Overflow See other posts from Stack Overflow or by PHP-Prabhu
Published on 2010-05-22T12:11:11Z Indexed on 2010/05/22 12:20 UTC
Read the original article Hit count: 120

Filed under:

can any one please let me know the basic differences between

$GLOBALS["test"] and global $test

and, will it make sense that, if i use $GLOBALS["test"] instead of $_SESSION['test']?

© Stack Overflow or respective owner

Related posts about php